package com.bingxue.edu.management.system.model.query;

import cn.hutool.core.date.DatePattern;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author panbo
 * @since 2024/8/27
 */
@Data
public class OnlineUserQuery {
    @Schema(description = "用户类型", example = "employee")
    private String userType;

    /**
     * 用户昵称
     */
    @Schema(description = "用户姓名", example = "张三")
    private String name;

    /**
     * 登录时间
     */
    @Schema(description = "登录时间", example = "2023-08-08 00:00:00,2023-08-08 23:59:59")
    @DateTimeFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private List<Date> loginTime;
}
